#!/usr/bin/env python
# encoding: utf-8
"""
main.py

Created by Bertrand Cachet on 2009-06-02.
Copyright (c) 2009 __MyCompanyName__. All rights reserved.
"""

import logging
logging.basicConfig(level=logging.DEBUG, format='%(message)s')
from logging import info

def main():
    from social_box import GoogleReaderService
    s = GoogleReaderService('test.socialbox', 'S0ci@lB0x')
    print s.get_subscription_list()
    s.add_subscription('http://www.framasoft.net/spip.php?page=backend&id_rubrique=338')
    print s.get_subscription_list()
    for entry in s.get_all():
        info(entry)

    s.remove_subscription('http://www.framasoft.net/spip.php?page=backend&id_rubrique=338')
    print s.get_subscription_list()

if __name__ == '__main__':
    main()

